package com.mydemo.design_pattern.structure_type.bridge_pattern;

import com.mydemo.design_pattern.structure_type.bridge_pattern.impl.FlvPlayer;
import com.mydemo.design_pattern.structure_type.bridge_pattern.impl.LinuxPlatform;
import com.mydemo.design_pattern.structure_type.bridge_pattern.impl.MacPlatform;
import com.mydemo.design_pattern.structure_type.bridge_pattern.impl.Mp4Player;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: DemoTest, v1.0 2019-09-18 17:21 liming1 Exp $
 */
public class DemoTest {
    public static void main(String[] args) {
        FlvPlayer flvPlayer = new FlvPlayer();
        Mp4Player mp4Player = new Mp4Player();

        MacPlatform platform1 = new MacPlatform(flvPlayer);
        LinuxPlatform platform2 = new LinuxPlatform(mp4Player);
        platform1.realPlay("甜蜜蜜1");
        System.out.println("=======================");
        platform2.realPlay("甜蜜蜜2");
    }
}
